package com.chuck.blogpro.service.impl;

import com.chuck.blogpro.service.LogService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

@Service
public class LogServiceImpl implements LogService {

    @Transactional(propagation = Propagation.REQUIRES_NEW)
    public void add(String msg) {
        System.out.println("日志记录：" + msg);
    }
}
